﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace IslandInterloper.Engine
{
    internal class AvatarCrewmembers: GameClientCollectionStringKeyed<AvatarCrewmember>
    {
        internal AvatarCrewmembers(Game theGame)
            : base(theGame)
        {
            foreach (string crewmember in Game.Crewmembers.Keys)
            {
                collection.Add(crewmember, new AvatarCrewmember(Game, crewmember));
            }
        }
        internal AvatarCrewmembers(Game theGame, XElement element)
            : base(theGame, element)
        {
        }
        protected override AvatarCrewmember LoadItemFromXElement(System.Xml.Linq.XElement element)
        {
            return new AvatarCrewmember(Game,element);
        }
    }
}
